package com.hly.dao;

import com.hly.model.Items;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.SelectKey;

public interface IitemsDao {

    @Insert("insert items (price,amount,order_id,good_id) value (#{price},#{amount},#{orderId},#{goodId})")
    @SelectKey(keyProperty = "id" , statement = "SELECT LAST_INSERT_ID()", before = false, resultType = Integer.class)
    public boolean insertItems(Items items);
}
